package thread;

public class ThreadInfoDemo {
    public static void main(String[] args){
        Thread thread = new Thread("ydpi"){
            @Override
            public void run(){
                System.out.println(this.getName());
                System.out.println(this.getId());
                System.out.println(this.getState());
                System.out.println("中断:"+this.isInterrupted());
                System.out.println("守护:"+this.isDaemon());
                System.out.println("存活:"+this.isAlive());
            }
        };
        thread.start();
    }
}
